// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import store from './store'
import App from './App'
import router from './router'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import preview from 'vue-photo-preview'
import 'vue-photo-preview/dist/skin.css'

import global_ from './Global'//引用文件
Vue.prototype.GLOBAL = global_//挂载到Vue实例上面

import api from './api.js'
Vue.prototype.$api = api;// 将API方法绑定到全局

Vue.config.productionTip = false

Vue.use(ElementUI)
Vue.use(preview)

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
